package com.wxmit.module.system.web.workbench;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wxmit.base.domain.ApiResult;
import com.wxmit.base.enums.YesOrNoEnum;
import com.wxmit.base.validate.AddGroup;
import com.wxmit.base.validate.UpdateGroup;
import com.wxmit.framework.web.operatelog.Log;
import com.wxmit.framework.web.operatelog.enums.BusinessType;

import com.wxmit.module.system.domain.workbench.QuickLink;
import com.wxmit.module.system.service.IQuickLinkService;
import com.wxmit.system.base.core.ShushanBaseController;
import com.wxmit.system.base.domain.PageDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 快捷操作Controller
 * 
 * @author xiong
 * @date 2022-09-07
 */
@RestController
@RequestMapping("/workbench/link")
public class QuickLinkController extends ShushanBaseController<IQuickLinkService,QuickLink,Long> {

    public QuickLinkController(IQuickLinkService baseService) {
        super(baseService);
    }

    /**
     * 获取初始枚举数据
     */
    @GetMapping("/getInitData")
    public Map<String,Object> getInitData(){
        Map map = new HashMap();
        map.put("yesOrNoOptions", YesOrNoEnum.getEnums());
        return map;
    }
}